<template>
  <!--导航-->
  <div class="menu">
    <el-dropdown @command="handleCommand">
          <span class="el-dropdown-link">
            导 航<i class="el-icon-arrow-down el-icon--right"/>
          </span>
      <el-dropdown-menu slot="dropdown">
        <el-dropdown-item command="home">家庭网关拨测质量分析统计</el-dropdown-item>
        <el-dropdown-item command="probe">全国探针纳管分布</el-dropdown-item>
        <el-dropdown-item command="combine">业务质差综合分析</el-dropdown-item>
        <el-dropdown-item command="comprehensive">家庭网关业务质量综合分析</el-dropdown-item>
        <!--<el-dropdown-item command="benchmarking">宽带行业对标系统分析展示</el-dropdown-item>-->
      </el-dropdown-menu>
    </el-dropdown>
  </div>
</template>

<script>
  export default {
    name: 'Navigation',
    data() {
      return {}
    },
    methods: {
      handleCommand(command) {
        let curPath = this.$route.fullPath.replace('/','')
        if (curPath === command) return
        this.$router.push(command)
      },
    }
  }
</script>

<style scoped>
.menu{
  height: 20px;
  position: absolute;
  line-height: 20px;
  padding-right: 10px;
  right: 0;
  letter-spacing: 2px;
}
</style>
<style>
.el-dropdown-link {
  cursor: pointer;
  color: #409EFF;
}
.el-icon-arrow-down {
  font-size: 12px;
}
</style>
